<template>
  <div id="app">
    <!-- 头部 -->
    <Header/>
    <!-- 路由出口 -->
    <router-view>
    </router-view>
    <!-- 尾部 再home,search下显示 再登录或者注册是隐藏的 -->
    <Footer v-show="$route.meta.show"/>
  </div>
</template>

<script>
import Header from './components/Header';
import Footer from './components/Footer'
export default {
  name: 'App',
  mounted() {
     this.$store.dispatch("categoryList");
  },
  components: {
    Header,
    Footer
  }
}
</script>

<style>
</style>
